// 获取链接 参数值
// var getUrl = window.location.href;
function getUrlKey(name, url) {
    return (
        decodeURIComponent(
            (new RegExp("[?|&]" + name + "=" + "([^&;]+?)(&|#|;|$)").exec(
                url
            ) || [, ""])[1].replace(/\+/g, "%20")
        ) || null
    );
}